package org.bonorsoft.modules.dingding.service;

import org.bonorsoft.modules.dingding.entity.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 用户与角色关联
 * @Author: WilliamYe
 * @Date:   2020-11-13
 * @Version: V1.0
 */
public interface ISysUserRoleService extends IService<SysUserRole> {

    void addUserRole(List<String> userIdList, List<Integer> labelIdList);

    void deleteUserRole(List<String> userIdList, List<Integer> labelIdList);

    /**
     * 通过角色ID查询角色使用数量
     *
     * @param id 角色ID
     * @return 结果
     */
    public Integer countUserRoleByRoleId(Integer id);
}
